package com.spring.utils;

/**
 * @author SpringWang
 * @date 2021/5/25
 */
public class StringUtils {

    public static String toLowerFirstCase(String content) {
        char[] chars = content.toCharArray();
        chars[0] += 32;
        return String.valueOf(chars);
    }

    public static String lowerFirstCase(String content) {
        return content.substring(0, 1).toLowerCase() + content.substring(1);
    }

    public static boolean isEmpty(String value) {
        return isEmpty((CharSequence) value);
    }

    public static boolean isEmpty(CharSequence value) {
        return value == null || value.length() == 0;
    }
}
